/*
 * JXChat2App.java
 */

package jxchat2;

import application.ApplicationContext;
import application.SingleFrameApplication;
import java.awt.Window;
import javax.swing.JFrame;

/**
 * The main class of the application.
 */
public class JXChat2App extends SingleFrameApplication {

    /**
     * At startup create and show the main frame of the application.
     */
    @Override protected void startup() {
       JFrame jc2 = new JXChat2Frame();
       setMainFrame(jc2);
       show(getMainFrame());
   }
    
   

    /**
     * This method is to initialize the specified window by injecting resources.
     * Windows shown in our application come fully initialized from the GUI
     * builder, so this additional configuration is not needed.
     * @param root 
     */
    @Override protected void configureWindow(Window root) {
    }

    /**
     * A convenient static getter for the application instance.
     * @return the instance of JXChat2App
     */
    public static JXChat2App getApplication() {
        return (JXChat2App) ApplicationContext.getInstance().getApplication();
    }

    /**
     * Main method launching the application.
     * @param args 
     */
    public static void main(String[] args) {
        launch(JXChat2App.class, args);
    }
}
